<script>
export default {
  name: 'Avatar',
  props: {
    defaultImage: {
      type: String,
      default: ''
    },
    src: {
      type: String,
      default: ''
    }
  }
}
</script>

<template>
  <el-avatar v-bind="$attrs" v-on="$listeners" :src="src">
    <template #default>
      <img :src="defaultImage"/>
    </template>
  </el-avatar>
</template>

<style scoped lang="scss">

</style>
